package com.chinacoal.microservice.api.model;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="查询待办参数",description="查询待办参数")
public class QueryUtaskParam {

	@ApiModelProperty(value ="是否收藏", example="true:是，false:否", required=false)
	private String collect;
	
	@ApiModelProperty(value ="来源系统用户", example="来源系统用户", required=true)
	@NotBlank(message = "来源系统用户不能为空: userCode")
	private String userCode;

	@ApiModelProperty(value ="待办Id", example="", required=false)
	private String sysTaskId;
	
	@ApiModelProperty(value ="待办标题", example="可模糊查询", required=false)
	private String taskName;
	
	@ApiModelProperty(value ="待办状态", example="0：待办，2：已办，3：取消，4：待阅，5：已阅，6：取消阅览", required=true)
	@NotBlank(message = "待办状态不能为空: state")
	private String state;
	
	@ApiModelProperty(value ="来源系统编码", example="", required=true)
	@NotBlank(message = "来源系统编码不能为空: sysCodeFrom")
	private String sysCodeFrom;
	
	@ApiModelProperty(value ="目标系统编码", example="", required=true)
	@NotBlank(message = "目标系统编码不能为空: sysCode")
	private String sysCode;
	
	@ApiModelProperty(value ="待办类型", example="", required=false)
	private String typeCode;
	
	@ApiModelProperty(value ="当前页码", example="", required=false)
	private Integer first;
	
	@ApiModelProperty(value ="每页记录数", example="", required=false)
	private Integer limit;
}
